#!/bin/sh

# Session Name
session="work"

# set up tmux
tmux start-server

# Create new window labelled Term
tmux new-session -d -s $session -n Term

# Setup Cmus
tmux new-window -t $session:1 -n Cmus
tmux send-keys "cmus" C-m

# Setup Sound
tmux new-window -t $session:2 -n Sound
tmux send-keys "alsamixer" C-m

# Setup News
tmux new-window -t $session:3 -n News
tmux send-keys "newsbeuter" C-m

# return to window Term
tmux select-window -t $session:0

# Finished setup, attach to the tmux session!
tmux attach-session -t $session
